home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / bbs / pad311.zip / SETTINGS.MH < prev    next >
Text File  |  1996-08-26  |  26KB  |  566 lines

  1. // ---------------------------------------------------------------------------
  2. //                           S E T T I N G S . M H
  3. // ---------------------------------------------------------------------------
  4. //
  5. // This file controls the behaviour of the Padlock call back verifier. This 
  6. // file replaces the file PADLOCK.CTL which was included with version 1.xx
  7. // In order for the settings in this file to take effect, you must recompile
  8. // the .MEX files by running the BUILD batch file in your padlock directory.
  9. // UNTIL YOU RUN BUILD, THE CHANGES YOU MAKE TO THIS FILE WILL HAVE NO EFFECT.
  10. // 
  11. // See also the file INSETUP.MH for settings which control the behaviour of
  12. // the input/output routines.
  13. //
  14. // About this version --------------------------------------------------------
  15. //
  16. // This file is NOT fully compatible with previous versions of padlock. If
  17. // you are upgrading from a previous version, you will have to manually
  18. // edit this file - you cannot simply copy your old file over this one.
  19. //
  20. // New keywords since version 2.03:
  21. //
  22. //      File and pathnames:
  23. //
  24. //      log_file
  25. //      message_file_directory
  26. //      abort_file
  27. //      success_hangup_file
  28. //      bad_baudrate_file
  29. //      bad_baudrate_attempt_file
  30. //      bad_time_file
  31. //
  32. //      Settings:
  33. //
  34. //      num_update_city
  35. //      num_baudrate_check_behaviour
  36. //      num_codeword_length
  37. //      flg_use_codeword
  38. //
  39. //      Various display keywords
  40. //
  41. //
  42. // Keywords removed since version 2.03:
  43. //
  44. //      unknown_phone_file
  45. //
  46. //      Various display keywords
  47. //
  48. // The "Sysop display" section was added in version 3.10.
  49. //
  50. // File format ----------------------------------------------------------------
  51. //
  52. // All lines beginning with "#define" specify a keyword which controls some
  53. // aspect of the verifier's behaviour. Immediately following the #define 
  54. // statement is the keyword being declared. Unlike previous versions of Padlock
  55. // which used PADLOCK.CTL, all keywords are case sensitive. After the keyword
  56. // is the setting for that keyword. Note that lines containing keywords MAY NOT
  57. // contain comments. It does not matter what order the keywords in this file
  58. // appear.
  59. //
  60. // Most settings are either numeric, boolean, or strings. Numeric settings
  61. // are simply numbers. Boolean settings must either contain the text "True" or
  62. // "False" without the double quotes. (Capitalization of the 'T' in True and
  63. // the 'F' in False is important). String settings must be enclosed in double
  64. // quotes. 
  65.  
  66. // The following two lines ensure that this file will only be compiled once.
  67. // Don't modify them!
  68.  
  69. #ifndef __SETTINGS_MH
  70. #define __SETTINGS_MH
  71.  
  72. // ---------------------------------------------------------------------------
  73. //                              F I L E N A M E S
  74. // ---------------------------------------------------------------------------
  75. //
  76. // This section defines the names of all files used by Padlock. Note that all
  77. // backslashes MUST be escaped. That is, wherever you'd normally use one
  78. // backslash, you must use two. For example, to enter the path:
  79. //
  80. // c:\max\padlock
  81. //
  82. // You'd need to enter the string:
  83. //
  84. // c:\\max\\padlock
  85. //
  86. // All path names are given with respect to the main maximus directory. If
  87. // no path is specified, then the file will be searched for in the main max
  88. // directory.
  89. //
  90.  
  91.         // phoneTempFile specifies the filename of the temporary file 
  92.         // generated by getphone.
  93.  
  94. #define phoneTempFile     ("getphone." + strpadleft (itostr (id.task_num), 3, '0'))
  95.  
  96.         // checkNumTempFile specifies the filename of the temporary file
  97.         // generated by checknum.
  98.  
  99. #define checkNumTempFile  ("checknum." + strpadleft (itostr (id.task_num), 3, '0'))
  100.  
  101.         // phone_file specifies the name of the file where Padlock will
  102.         // find information about your local calling area. By default,
  103.         // this file is located in the same directory as the rest of the
  104.         // padlock files.
  105.  
  106. #define phone_file                      "padlock\\phone.ctl"
  107.  
  108.         // log_file defines the name of a file where Padlock will write one
  109.         // line for every verification attempt, describing its result.
  110.         // This file is optional. If empty quotes are specified, no log
  111.         // file will be written.
  112.  
  113. #define log_file  ("padlock\\logfile." + strpadleft (itostr (id.task_num), 3, '0'))
  114. //#define log_file      ""
  115.  
  116.         // .BBS files --------------------------------------------------------
  117.         //
  118.         // The following keywords specify the name of .BBS files (without
  119.         // the .BBS extension) that padlock displays at different times.
  120.         // Many of these files are optional. If an optional filename is
  121.         // left blank, a standard message will be displayed to the user
  122.         // instead of the .BBS file.
  123.  
  124.         // message_file_directory specifies the directory where all the Padlock
  125.         // *.MEC and *.BBS files can be found. By default, all of these files
  126.         // are kept in a directory within your main Maximus directory called
  127.         // "padlock". If you wish to move these files, change this directory
  128.         // name.
  129.  
  130. #define message_file_directory          "padlock"
  131.  
  132.         // long_distance_file is displayed to users calling from long distance
  133.         // numbers at which verifications are not allowed.
  134.  
  135. #define long_distance_file              "ld"
  136.  
  137.         // dupe_found_file is displayed when a user enters a phone number that
  138.         // is already being used by another user.
  139.  
  140. #define dupe_found_file                 "dupe"
  141.  
  142.         // lockout_file is displayed if a user enters a number which has been
  143.         // locked out.
  144.  
  145. #define lockout_file                    "lockout"
  146.  
  147.         // local_file is displayed to all users whose phone numbers are
  148.         // detected as local calls.
  149.  
  150. #define local_file                      "local"
  151.  
  152.         // ld_ok_file is displayed to all users who have entered a long
  153.         // distance number which is considered valid for verification.
  154.  
  155. #define ld_ok_file                      "ldok"
  156.  
  157.         // One (and only one) of the following three files will be
  158.         // displayed to the user at the end of each verification attempt.
  159.         //
  160.         // success_file         displayed to the user after a sucessful
  161.         //                      verification.
  162.         //
  163.         // fail_file            displayed to the user if the verification
  164.         //                      was unsuccessful for watever reason.
  165.         //
  166.         // abort_file           displayed if the user aborted the 
  167.         //                      verification.
  168.         //
  169.  
  170. #define success_file                    "success"
  171. #define fail_file                       "fail"
  172. #define abort_file                      "abort"
  173.  
  174.  
  175.  
  176. #define welcome_back_file               "back"
  177. #define bad_code_file                   "badcode"
  178. #define bad_password_file               "badpwd"
  179. #define hangup_ld_file                  "byesucc"
  180. #define success_hangup_file             "byesucc"
  181. #define help_file                       "cbvhelp"
  182. #define bad_baudrate_file               "badbaud"
  183. #define bad_baudrate_attempt_file       "badbaud2"
  184.  
  185. //#define bad_time_file                 "badtime"
  186. #define bad_time_file                   ""
  187.  
  188.  
  189. // ---------------------------------------------------------------------------
  190. //                              S E T T I N G S
  191. // ---------------------------------------------------------------------------
  192. //
  193. // This section controls the behaviour of padlock.
  194. //
  195.  
  196.         // Boolean settings --------------------------------------------------
  197.         //
  198.         // The following settings may be set to either True or False.
  199.         //
  200.  
  201.         // if num_dupes is set to True, Padlock will not call back a user
  202.         // if his/her phone number is already being used by another user.
  203.  
  204. #define num_dupes                       True
  205.  
  206.         // num_registered_dupes modifies the behaviour of check_dupes -
  207.         // if set to True, Padlock will on